import Vue from 'vue'
import App from './App.vue'
import Router from 'vue-router'
import store from './store/store.js'
import ElementUI from 'element-ui'
import { Message } from 'element-ui'
import {MessageBox} from 'element-ui'
import {qs} from 'qs'
//css引入
import './assets/css/global.css'
import 'element-ui/lib/theme-chalk/index.css'
//导入自定义路由模块
import router from './router/router.js'
Vue.use(store)
Vue.use(Router)
Vue.use(ElementUI)
/**axios处理跨域请求 导入 */
import axios from 'axios'
//发送session
Vue.prototype.$http=axios;
axios.defaults.withCredentials = true;
Vue.prototype.$qs = qs
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
Vue.config.productionTip = false
// /**设置访问根路径：axios 配置 */
axios.defaults.baseURL="http://localhost:9000/"



const vm = new Vue({
    store,
    router, //这是抽离的路由实例
    render:c=>c(App),
}).$mount('#app');